package com.oocl.venus.utils;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

public class FilesUtils {

	public static String file(String filename) {

		StringBuffer content = new StringBuffer();
		;
		try {
			FileInputStream in = new FileInputStream(new File(filename));
			BufferedReader reader = new BufferedReader(new InputStreamReader(in));

			String s = "";
			while ((s = reader.readLine()) != null) {
				content.append(s + "\r\n");
			}
			reader.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return content.toString();
	}
}
